package com.example.mp.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


/**
 * @BelongsProject: MP
 * @BelongsPackage: com.example.mp.pojo
 * @Author: wyj
 * @CreateTime: 2024-05-14  14:55
 * @Description:
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class User {
    // @TableId 将属性所对应的字段指定为主键
    // value 属性用于指定主键字段
    // type 属性用于指定主键生成策略
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private String email;

    @TableLogic
    private Integer isDeleted;
}
